package com.atguigu.spzx.log.anno;


import com.atguigu.spzx.log.enums.BusinessTypeEnum;
import com.atguigu.spzx.log.enums.OperTypeEnum;

import java.lang.annotation.*;

@Documented
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface SysOperLog {
    //(title = "角色管理模块", bussinessType="查询",operType="MANAGE/MOBILE",isSaveParams=false,isSaveResult=false)
    String title();
    // 0查询 1新增 2删除 3修改
    BusinessTypeEnum bussinessType() default BusinessTypeEnum.SELECT;
    OperTypeEnum operType() default OperTypeEnum.MANAGE;
    boolean isSaveParams()  default  true;
    boolean isSaveResult() default  true;
}
